﻿using System;
using System.Collections.Generic;
using System.Web;

namespace NhanAi.Entity
{
    public class Comment
    {
        int id;
        int postId;
        string author;
        string authorEmail;
        DateTime commentDate;
        string commentContent;
        string commentType;
        bool approved;
        int parentId;
        int userId;

        User user;

        public int Id { get { return id; } set { id = value; } }
        public int PostId { get { return postId; } set { postId = value; } }
        public string Author { get { return author; } set { author = value; } }
        public string AuthorEmail { get { return authorEmail; } set { authorEmail = value; } }
        public DateTime CommentDate { get { return commentDate; } set { commentDate = value; } }
        public string CommentContent { get { return commentContent; } set { commentContent = value; } }
        public string CommentType { get { return commentType; } set { commentType = value; } }
        public bool Approved { get { return approved; } set { approved = value; } }
        public int ParentId { get { return parentId; } set { parentId = value; } }
        public int UserId { get { return userId; } set { userId = value; } }

        //reference
        public User User { get { return user; } set { user = value; } }
    }
}